package com.shinewind.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(description = "News实体类")
public class News implements Serializable {
  @TableId(type = IdType.ASSIGN_UUID)
  @ApiModelProperty(value = "新闻id")
  private String id;
  @ApiModelProperty(value = "新闻标题")
  private String title;
  @ApiModelProperty(value = "新闻图片地址")
  private String src;
  @ApiModelProperty(value = "新闻跳转地址")
  private String href;
  @ApiModelProperty(value = "是否是模型")
  private String isModel;
}
